import request from '@/utils/request'

// 查询月度开销列表
export function listExpenses(query) {
  return request({
    url: '/system/expenses/list',
    method: 'get',
    params: query
  })
}

// 查询月度开销详细
export function getExpenses(orderId) {
  return request({
    url: '/system/expenses/' + orderId,
    method: 'get'
  })
}

// 新增月度开销
export function addExpenses(data) {
  return request({
    url: '/system/expenses',
    method: 'post',
    data: data
  })
}

// 修改月度开销
export function updateExpenses(data) {
  return request({
    url: '/system/expenses',
    method: 'put',
    data: data
  })
}

// 删除月度开销
export function delExpenses(orderId) {
  return request({
    url: '/system/expenses/' + orderId,
    method: 'delete'
  })
}
